// 包含指针的节点
export default class Node<T> {
  element: any;
  next: any;
  // 在TS 中添加“？”，表示参数类型可传可不传
  constructor(element: T, next?: any) {
      this.element = element
      this.next = next
  }
}